const mongoose = require('mongoose')
/**
 * 维护用户id自增表
 */
const userSchema = new mongoose.Schema({
    menuType:Number, //菜单类型
    menuName:String ,//菜单名称
    mneuCode:String ,//权限标识
    path:String , // 菜单路径
    icon:String,// 菜单图标
    menuState:Number, //菜单状态
    commentPath:String, //组件路径
    parentId:[mongoose.Types.ObjectId],
 "createTime":{
     type:Date,
     default:Date.now()
 },
 
})

const Menu = mongoose.model('menu',userSchema,'menus')

module.exports={
    Menu
}